package com.ane.util;

import java.io.Serializable;

public abstract class G7OpenAPIConstant implements Serializable {

    private static final long  serialVersionUID           = -8782456355199285984L;
    public static final String REQUESTS                   = "requests";
    public static final String DATEFORMAT                 = "yyyyMMddHHmmssSSSZ";
    public static final int    DEFAULT_REQ_TIMEOUT        = 5000;
    public static final long   DEFAULT_RSP_EXPIRED_TIME   = 10000;

    /** URL 中的keys */
    public static final String REQ_DEFAULT_NAMESPACE      = "_aop_defaultNameSpace";
    public static final String REQ_DEFAULT_VERSION        = "_aop_defaultVersion";
    public static final String REQ_ENCODING               = "_aop_requestEncoding";
    public static final String REQ_FORMAT                 = "_aop_requestFormat";
    public static final String RSP_ENCODING               = "_aop_responseEncoding";
    public static final String REQ_APPKEY                 = "_aop_appKey";
    public static final String REQ_SIGNATURE              = "_aop_signature";

    public static final String REQ_VERSION                = "version";
    public static final String REQ_NAMESPACE              = "namespace";
    public static final String REQ_OPERATION              = "operation";
    public static final String REQ_API_TIMESTAMP          = "api_timestamp";
    public static final String REQ_DATA                   = "_data_";
    public static final String REQ_SESSION_ID             = "sessionId";
    public static final String REQ_USER_ID                = "userId";

    public static final String REQ_FORMAT_JSON            = "json";
    public static final String REQ_FORMAT_XML             = "xml";
    public static final String REQ_FORMAT_PARAMETER       = "param";

    public static final String RSP_FORMAT_JSON            = "json";
    public static final String RSP_FORMAT_XML             = "xml";
    public static final String REQ_ROTMAT            	  = "format";

    /** Response 中的keys */
    public static final String RSP_RESPONSES              = "Responses";
    public static final String RSP_INVOKESTARTTIME        = "InvokeStartTime";
    public static final String RSP_INVOKEFINISHTIME       = "InvokeFinishTime";
    public static final String RSP_INVOKECOSTTIME         = "InvokeCostTime";
    public static final String RSP_SIGNATURE              = "Signature";
    public static final String RSP_STATUS                 = "Status";
    public static final String RSP_STATUS_CODE            = "Code";
    public static final String RSP_RESULT                 = "Result";
    public static final String RSP_EXCEPTION              = "Exception";
    public static final String RSP_MESSAGE                = "Message";
    public static final String RSP_STATUSCODE             = "StatusCode";
    public static final String RSP_STATUSTEXT             = "StatusText";
    public static final String RSP_BODY                   = "Body";

    /** 默认值 */
    public static final String DEFAULT_ENCODING           = "UTF-8";
    public static final String DEFAULT_AOAP_PARAMS_NAME   = "qmap";
    public static final String DEFAULT_ALP_PARAMS_NAME    = "params";
    public static final String DEFAULT_ALP_DIGEST_NAME    = "digest";
    public static final String DEFAULT_ALP_TIMESTAMP_NAME = "timestamp";
    public static final String PARAMETERS                 = "parameters";
    public static final String DEFAULT_ALP_FORMAT         = "format";
    
}
